<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3_元素的消失方式</title>
    <style>
        div {
          width: 200px;
          height: 200px;
        }
        .d1 {
          background-color: lightgreen;
        }
        .d1:hover {
          transform:scale(0);
        }
        .d2 {
          background-color: lightpink;
        }
        .d2:hover {
        display: none;
        }
        .d3 {
          background-color: lightsalmon;
        }
        .d3:hover {
          opacity: 0;
        }

    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>